package com.avocado.configuration.validator;

import javax.validation.Constraint;
import javax.validation.Payload;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;


@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(validatedBy = IdGeneratorAddGenNameValidator.class)
public @interface IdGeneratorAddGenNameValidation {

    String message() default "validation failed,genName exist in database";
    Class<?>[] groups() default {};
    Class<? extends Payload>[] payload() default {};

}
